﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Roslyn.Compilers.CSharp;

namespace WeaverCustomTool
{
    public static class NamingRules
    {
        public static string CreateFieldName(this TypeSyntax type)
        {
            return type.ToFullString().Trim().ToCamelCase() + "Instance";
        }

        public static string ToCamelCase(this string textExpression)
        {
            return textExpression[0].ToString(CultureInfo.InvariantCulture).ToLower() + textExpression.Substring(1);
        }
    }
}
